Python for finance error

by: Punisher, 7 years ago


Hey, so im wathcing your tutorial (madprops to you for making them), and im kinda making my own thing. To make it work with the stocks i want. I just rand into this problem, im sure its a simple fix. I just want the program to keep running even though it gets this error msg: Unable to read URL: http://www.google.com/finance/historical?enddate=May+30%2C+2017&startdate=Jan+01%2C+2000&q=AKVA&output=csv

How can i make it run?



You must be logged in to post. Please login or register an account.



You are getting a error 400.

Wiki
'400 Bad Request
The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, too large size, invalid request message framing, or deceptive request routing).[31]"

-JamesSchinner 7 years ago

You must be logged in to post. Please login or register an account.


But how do i  make it continue despite this error? Because the error comes from some of the tickers dont have csv format.

-Punisher 7 years ago

You must be logged in to post. Please login or register an account.


Have you watch the videos on Try and Except?

I believe you would identify the exception being generated and except for that. Though admit i'm not sure.

regards,

-JamesSchinner 7 years ago

You must be logged in to post. Please login or register an account.